<template>
<div>
  <search-header></search-header>
  <search-body></search-body>

</div>
  
</template>
<script>
import SearchHeader from "@/pages/search/components/Header"

import SearchBody from "@/pages/search/components/Body"
export default {
  components: { 
    SearchHeader,

    SearchBody


   },
  beforeRouteEnter(to, from, next) {
    var UserToken=localStorage.getItem("UserToken");
    if (UserToken) {
       next();
    } else {
      next({ path: '/login', query: { historypath: "/search" }});
    }
  }
};
</script>